package com.mycom.dao;



import com.mycom.pojo.TeamSubmitWaitCertain;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeamSubmitWaitCertainDao {
    /**
     * 存储团队待审核表单的团队成员信息
     * @param teamSubmitWaitCertain
     * @return
     */
    public int save(TeamSubmitWaitCertain teamSubmitWaitCertain);

    /**
     * 根据报表id查询当前团队报表的成员
     * @param formId
     * @return
     */
    public List<TeamSubmitWaitCertain> findByFormId(Integer formId);

    /**
     * 根据报表id删除团队成员信息
     * @param formId
     * @return
     */
    public int deleteByFormId(Integer formId);

    /**
     * 根据身份证号码和状态码查询团队相关成员信息
     * @param idCardNumber
     * @return
    */
    public List<TeamSubmitWaitCertain> findByIdCardAndState(@Param("idCardNumber") String idCardNumber, @Param("state") Integer state);

    /**
     * 更改团队报表中个人填报状态：确认1、拒绝确认-1、待确认0
     * @param member
     * @return
     */
    public int updateState(TeamSubmitWaitCertain member);

    public TeamSubmitWaitCertain findById(Integer id);
}
